package com.pxmeta.user.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author wcl
 * @since 2022-07-13
 */
@TableName("kt_user_disturb")
@ApiModel(value = "用户屏蔽对象", description = "")
@Data
public class UserDisturb implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("屏蔽对象id")
    private Long targetId;

    @ApiModelProperty("目标类型：1群聊，2圈子")
    private Integer targetType;

    @ApiModelProperty("是否删除")
    @TableLogic(value = "0",delval = "1")
    private Integer isDel;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

}
